const express = require('express');
const magazineRouter=express.Router();
const magazineSer=require('../../services/magazineService');

// 杂志获取
magazineRouter.get('/cover',async (req,res)=>{
    let {category,pagenum ,pagesize}=req.query;
    let result= await magazineSer.findMagazine(category,pagenum ,pagesize);
    res.send({
        data:{
            ...result
        },
        meta:{
            msg: '数据获取成功',
            status: 200
        }
    })
})




module.exports=magazineRouter